package com.punai.standard.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.punai.standard.domain.StaJxChapter;
import com.punai.standard.domain.template.StaJxChapterExcel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 机械章节Mapper接口
 *
 * @author zhx
 * @date 2022-12-21
 */
public interface StaJxChapterMapper extends BaseMapper<StaJxChapter>
{
    /**
     * 查询机械章节
     *
     * @param id 机械章节主键
     * @return 机械章节
     */
    public StaJxChapter selectStaJxChapterById(String id);

    /**
     * 查询机械章节列表
     *
     * @param staJxChapter 机械章节
     * @return 机械章节集合
     */
    public List<StaJxChapter> selectStaJxChapterList(StaJxChapter staJxChapter);

    List<StaJxChapterExcel> selectExport(@Param("versionId") String versionId);


    /**
     * 删除机械章节
     *
     * @param id 机械章节主键
     * @return 结果
     */
    public int deleteStaJxChapterById(String id);

    /**
     * 批量删除机械章节
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteStaJxChapterByIds(String[] ids);

    List<String> selectChildrenIdById(@Param("id") String id, @Param("versionId")String versionId);
}
